#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/9/25 15:15
# @Author  : 王凯
# @File    : pdd_app_risk_util.py
# @Project : scrapy_spider
import hashlib
import json
import random
import time
from pathlib import Path

import frida
import requests
from loguru import logger

from utils.proxies_tools import get_company_ip_crawler_by_api


class PddAppRPCUtil:

    def __init__(self):
        self.rpc_code = Path(Path(__file__).parent / 'rpc.js').read_text(encoding='utf-8')
        try:
            tt = frida.get_usb_device().attach("拼多多")
        except frida.TimedOutError:
            raise Exception("连接手机拼多多进程失败")
        script = tt.create_script(self.rpc_code)
        script.load()
        self.exports = script.exports_sync

    def gen_anti_content(self, timestamp, device_id=None):
        return self.exports.anticontent(timestamp, device_id)

    def encrypt_device(self, device_info):
        current_time = int(time.time() * 1000)
        print(current_time)
        res = self.exports.encryptdevice(device_info)
        res = """
        {"key":"CQ0pTMgJvfNfrD73AGHoVyLHrpG2DMtw0b9s34l7tDixOAua5PJR2LzNDVaJXxnPKisxOI/hjzjGzP24TjPCg0MWVhIQIt5/3TSeMgd+5FZn6mX+n4ywCijNK/M1egPgjKkhI9srkd4LfXudkPeguGz5kcNWut0JxYQjrG+Erck=","data":"kkb1+xXi5BIxwRsD8czOmR3g5cppVUsEwOmbOGPer/Fi40DpOiUJ+IfgXLnDJ4P6aNOQzIeOwRo3eFqEbc7q+RvvtF8COqQND8dlF9m03hgJfMnS1TwG2THj0Zqltj/ZDibXyJGQFlzzZH9nT28TP8kRNi41GKdw/o0TeI3R3FXzxXxjdv6wrVPosF0fnO91rfs9/YZoyh8l/9CU+ZK79QjgQSZzLuTaXzNrlEvKWMg8Bt2tSQ0wFNXjMef3/qdV0WBp3L7xNPIBM92w6MkFOtx7NZaPsVVM+kdxwsek1xPAUoCjVyP4yW2ExOLDjhL7sD3gaK4bUH/CLIw96fUNKD1jCGL+qF7bYFnVCszqSiEJbDl/6BR5ys6bPgDVXhOcv7CJfMboBSz06KIjHjregqnQC92VIsQtKFa2m0K8s3M06L/S433QC7D/fA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YDY/w6lTlC3Ui5rnKJj7ipk55tGByQN1wodPoKczR9NQ9ctfYzNBPw4fK4UQGkVGtZlnY/5IGaS84iK/cwX+lEJg7sCVKj6kCmPpROs3tB1OYCGRNFWHbWDtmwC2fDJcjf7QH+BWu1YJlpTKTNQ9MgSwR1FVUEdRnpNxtkFp9XnWRRy4VRIxqDvlNlXcY+Z/L+wRZZKd9G/1J/dyGbZguG8KYVeKdcSoqUQxoT6tBmNCJK3W7TcX+1RNFfUVrK1+R2mLkT2iOJH6XBzBgMh4YQJxzmyxAHG+shUd6OEt2fDglDG7cVsr6v1AmgFcUyEHtwHHDJlK5F4kiXNQqG5ZLO+t6i3/7OWFlkC90TSPbSgBMMPYVewnOEpascLbD/wl0FDQUvbvWm5TRKHRP7nGhOXvAgXHVNgqBqYLhlmGG/UXgHjbmchkNrgqCtVZiXml8pFBEYen6y0337GYx/YNgpFD2FKayyVm49YiCFVY8wFizRoEEqHEm893wGF2o+HpKjj3jZAe8Llh4G7QMwq2GhjOZV38AseH4O9liNPsklCmVmW1QaXzj2kFmSmA4fMe5g9MJCL0EEmFo/YNLKptPA4d9dayukMHw7K77TCG6dG7ggnGOtamqAUExaTYe8jsvriihxgo5krnwp5EK8yM/2JoFn0VG5moEXjNaloeObqIBGKw/t0sTzTIkcB2UfWMZXP+n8Vy4l1+JtUwPSOjmA9LF1ew6y+zaYj/2N5q4ULsiqbfjIPX9xf2wMFuAitUlom5ynhdaCQBuGObk4616ziyHe8gEwioBK684LYsIgIIL7JYhyRo2cd91ka63sSD8VgbF1EGwtImUdw=="}
         """
        logger.debug(res)
        return json.loads(res)


class PddAppRiskUtil(PddAppRPCUtil):

    def __init__(self, device_info, app_version='7.8.0', phh_android_build='bf793aa528affe1b01408904fabc55be5b816173_pdd_patch'):
        super().__init__()
        self.device_info = device_info
        self.app_version = app_version  # app_version 与 phh_android_build 是绑定的
        self.phh_android_build = phh_android_build
        self.app_start_time = time.time() * 1000 - 100 * 1000

    def get_user_agent(self):
        return (
                "android Mozilla/5.0 (Linux; Android " +
                self.device_info['release'] + "; " +
                self.device_info['model'] + " Build/" +
                self.device_info['buildId'] +
                "; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/117.0.0.0 Mobile Safari/537.36  "
                f"phh_android_version/{self.app_version} phh_android_build/{self.phh_android_build} phh_android_channel/yyb pversion/5488"
        )

    def get_x_pdd_queries(self):
        return (
                "width=" +
                self.device_info['width'] + "&height=" +
                self.device_info['height'] + "&net=1&brand=" +
                self.device_info['brand'] + "&model=" +
                self.device_info['model'] + "&osv=" +
                self.device_info['release'] + f"&appv={self.app_version}&pl=2"
        )

    def get_pdd_config(self):
        return "V4:001." + ''.join([i.zfill(2) for i in self.app_version.split('.')])

    @staticmethod
    def get_x_b3_ptracer():
        now = int(time.time())
        salt = str(random.randint(100000, 999999))
        token = salt + str(now) + salt
        return 'hc' + 'true' + hashlib.md5(token.encode(encoding='UTF-8')).hexdigest()[:26]

    def get_anti_token(self, long=False):
        if long:
            return self.gen_anti_content(int(time.time() * 1000))
        else:
            return self.gen_anti_content(int(time.time() * 1000), device_id=self.device_info['etag'])

    def get_p_proc_time(self):
        return str(int(time.time() * 1000 - self.app_start_time))

    def get_device_common_headers(self):
        headers = {
            "User-Agent": self.get_user_agent(),
            "Accept-Encoding": "gzip",
            # "AccessToken": "XGBHFRC422WGQEUHOSBJFVSVONS7GPAVQ3MPDFCPVOQWXFUONOPA1206869",
            "anti-token": self.get_anti_token(),
            "content-type": "application/json;charset=UTF-8",
            "ETag": '',
            "p-mediainfo": "player=2.0.4&rtc=3.0.0",
            "p-proc": "main",
            "pdd-config": self.get_pdd_config(),
            "Referer": "Android",
            "x-b3-ptracer": self.get_x_b3_ptracer(),
            "p-appname": "pinduoduo",
            "p-proc-time": self.get_p_proc_time(),
            "x-pdd-info": "bold_free%3Dfalse%26bold_product%3D%26front%3D1%26tz%3DAsia%2FShanghai",
            "X-PDD-QUERIES": self.get_x_pdd_queries(),
            'Connection': 'Keep-Alive',
            'Host': 'api.pinduoduo.com',
        }
        return headers

    def get_etag_params(self, etag_body):
        url = 'https://api.pinduoduo.com/project/meta_info?pdduid='
        headers = {
            "User-Agent": self.get_user_agent(),
            "Accept-Encoding": "gzip",
            "Content-Type": "application/json",
            "ETag": '',
            "p-mediainfo": "player=2.0.4&rtc=3.0.0",
            "p-proc": "main",
            "PDD-CONFIG": self.get_pdd_config(),
            "Referer": "Android",
            "x-b3-ptracer": self.get_x_b3_ptracer(),
            "p-appname": "pinduoduo",
            "p-proc-time": self.get_p_proc_time(),
            "x-pdd-info": "bold_free%3Dfalse%26bold_product%3D%26front%3D1%26tz%3DAsia%2FShanghai",
            "X-PDD-QUERIES": self.get_x_pdd_queries(),
            'Connection': 'Keep-Alive',
            'Host': 'api.pinduoduo.com',
        }
        return url, headers, etag_body

    def get_etag(self, proxies=None):
        """
        激活 etag
        :param etag_body:
        :param proxies:
        :return:
        {
          "app_info": {
            "cur_version": "1.9.0",
            "min_version": "1.0.0",
            "api_domain": "http://api.yangkeduo.com",
            "app_domain": "http://app.yangkeduo.com",
            "chat_service": "ws://ws.yangkeduo.com/"
          },
          "pdd_id": "oyfPqW5K",
          "server_time": 1727228543,
          "ext_data": {
            "pcd": "0",
            "type_5_config": "1",
            "access_type": "1",
            "wtp": "1",
            "phantom_all": "1",
            "javah": "0",
            "phantom_span": "20,300,1000",
            "extra_access": "0",
            "rc_exp": "rFqi",
            "phantom_config": "3",
            "ds": "{\"on\":\"1\",\"bl\":[],\"co\":\"\"}"
          }
        }
        """
        etag_body = self.get_etag_body()
        url, headers, etag_body = self.get_etag_params(etag_body)
        logger.debug(f'[pdd etag] 获取设备信息请求参数: url: {url} \n headers: {json.dumps(headers, indent=4)}\n etag_body: {json.dumps(etag_body, indent=4)}')
        response = requests.post(url, headers=headers, json=etag_body, proxies=proxies, cookies={
            # 'api_uid': "CiUwV2bz3Cy14gEXBJ7tAg==",
            # 'JSESSIONID': "5238160AEDB63CF6FB44CC25560BA4CF",
        }).json()
        logger.debug(f'[pdd etag] 获取设备信息返回结果: {response}')
        return response['pdd_id']

    def get_etag_body(self):
        """
        C25598p.m88857a
        {
            "key": "rsZk68UDuPrcN0DjtqvWzF91X4pN1GuW29N2t9P7S8kRURLGiqUrt2HtNcWPUZFRYC7WBwc5oFMj3D8u5x+KWalyzPTRQr7I1KNPdvB1WlHc+p0BRy9lQvbi3mdLdNXmucjrHFRrdL2UmTN8in/iYgJm0vraYL+wNzXKP2iw6q0=",
            "data": "2YAjBQUcRko8Brata4CNluVoX2RBpDMXe2NM3+cw+6DzC+Sy9ScKYE61rztmcpAfCFkhvWHXIZisDpwXjy0KL4X6diCxGVz/Cu+Wua7LT1aACjaNvaBIlWOJBzmsmHGye4Wb8Gi503q4tNqddQT2Bz+nIQUXLOafLQdRewAHlrKa/Qk0YaTEoTdoP1pb7NTMR+t9i8Mu6jx99oP1xM6gVe5RhQiKItWCUYyCD4kuaekEVrrUaYqWElb60OGuksrKNFw6xHx5fNzf72rl4gmCHwVImyscXq4dd7Rqc6fQoDXOyhCd0FA6iP6BZPvTkCDGLL0VJoPpnBCv27qJCcCditcAUDqnxDQKlnUxb6lEZ2WwlZDtrYCg1fzDlglxJOZW7X9dBSx7W+6B9az+Ha9gJjth668SEOegC1yoS6NFluhobdZmb99x9xp8+SK9l0ytKQXUHxlt0kz3mK6iwOP3BN1hOih1nj6+Z+9aehvqRYK0driHQ24kbl+V+aRXL9oGcmOy/YOX7RSzpxJardZBZe/GEogcTK1fNS07Sr9z2QjV043qXpE464JRSXOdeJY0uhmfnYk1qxGMDBdG9DNn0zEK/CoxIvgM3GKY10i8UCxLH2B9BKLTV1M1YHHbg0JGr+rGCQ/OGJv9nUB9S1DSL+KekrVTc4/85+NG08DpmGsicduov1egPmZTy2cco/Df99ROBTzywKGu+VSsAQHHprwXgfgoFnUFNYeqnIybg1j537C6fh5/frZ88n3BMSnyEaJ27H78y0OzLNOATPzPK+xt3C0XvNz13ypCV1FcSIOu99LxKzeWc5bAQ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oz2KFcULGNynhZuM6MhrpGEJCSj8CrL4lrPsR9/icoMV+qYKigKHQj3NyGK7v7XdgjQ8aIq9uRk7GXLkXH36nE0kOeR7hELJDgC9plEy0hgvJg8fbBx0FuPBCgd6WnkRAOT9KxcX1QvYeNTtUYeX2IxYUvXdJNGHXrzkRrvcG/xNAcWE5pCkuxSVlnse/j31jqkoxF3ZLt4+pl+mcXgIMzffjT8dbSCelBVa0OqEYqAvv4PTOP/8h+TXQJRD3+gcQMZhtnG/hmt4Rb99ygMx4vqW/DCl1sCV35Y5MAVHDgG9MLe6ueLLDTwneTjamEg3k5JClkzogJUlZlffYgxHGLYIio4jXmsEkmRi6g2lO70I2124rdXeWeELUlT7XEON9134BAClVz5gEcsgOFr5vjs+s0kw1qkhsqYWBhpnU/fM/XqMqwHtL9G0uBdFptJz07qBlfKchUdXQRtFD8qguWOZ7LJYBc8eqRGLqwNPjOJP9inLhP6t+gf+6nuI9rMqWAtJnA44Ls8KiuGOvOk7HuPBgDRJGtPGislpAzq+k9TBJiahhgYYJuxgL/50Zy33Q7MGGVKhxqT7OXTvmre4fqCMXN5lxufBP58Phxxjj1jR7XqQ6R6QXXVyB2plZVctrnfnPYJSb7oZa9EDR89zb4GjE/QOqtOaoTiRyUc28tLOj2D3cl5pqrs05pepFQmEGcDGsGXsasEHrO6ufcJHioeVOp0v88M1GdMiPcw7nVY0RsJ5lYkTbpAJDw+Xu4WtsxRdeiiqk8NY9Wb6ZxvkFplaliLHvsfWNz1IsblxZgyY+XVxysIbxgLm6G0MaTJQDz1wIUnvPksVn3UVt3W+g5fqSU6RcdgImWrMPJUAdp/Uo3YKJOgB/11tz1eulbGKMr9wf4IdzDoV/DTgfoLZF+SuWlNkzsu0ynMBx5vzCJO+1QdGldgMsRG09BZmWCt4Zqu7jlDwwF7k8e6jB5Dkts5sOw4N1jyEsu",
            "platform": "android",
            "name": "pdd",
            "collect_begin_time": 58135442,
            "collect_end_time": 58136264
        }
        :param etag_body:
        :return:
        """
        params = {
            "start_by_user": "true",
            "install_token": self.device_info['install_token'],
            "uuid": self.device_info['uuid'],
            "cookie": self.device_info['cookie'],  # api_uid https://th.pinduoduo.com/te.gif 不一定是本次的
            "app_type": "",
            "app_version": self.app_version,
            "device_id": "",
            "tmp_id": "",
            "clipboard_md5": "",
            "commitid": self.phh_android_build,
            "scene": "1",
            "meta_type": "all",
            "uid": "",
            "pddid": self.device_info["etag"],
            "p46": self.device_info['p46'],  # 不知道是什么 固定值
            "imei_shown": "false",
            "instrumentation_chain": "android.app.Instrumentation",
            "known_device": "1",
            "oaid": self.device_info["oaid"],
        }
        # params = {
        #     "uid": "",
        #     "pddid": self.device_info["etag"],
        #     "install_token": self.device_info['install_token'],
        #     "app_version": self.app_version,
        #     "uuid": self.device_info['uuid'],
        #     "cookie": self.device_info['cookie'],  # api_uid https://th.pinduoduo.com/te.gif 不一定是本次的
        #     "commitid": self.phh_android_build,
        #     "p46": self.device_info["p46"],  # 不知道是什么 固定值
        #     "known_device": self.device_info["known_device"],
        #     "oaid": self.device_info["oaid"],
        #     "version": self.device_info["oaid"],
        #     "p30": self.device_info['p30'],
        #     "p72": self.device_info['p72'],
        #     "input_mathod": self.device_info['input_mathod'],
        #     "secure_lock": self.device_info['secure_lock'],
        #     "ip_list": self.device_info['ip_list'],
        #     "simState": self.device_info['simState'],
        #     "totalcapacity": self.device_info['totalcapacity'],
        #     "availablecapacity": self.device_info['availablecapacity'],
        #     "totalmemory": self.device_info['totalmemory'],
        #     "adb_enabled": self.device_info['adb_enabled'],
        #     "mediaDrm": self.device_info['mediaDrm'],
        #     "availablememory": self.device_info['availablememory'],
        #     "imei_permission": self.device_info['imei_permission'],
        #     "user_phonename": self.device_info['user_phonename'],
        #     "process_id": self.device_info['process_id'],
        #     "input_device": self.device_info['input_device'],
        #     "user_env2": self.device_info['user_env2'],
        # }
        res = self.encrypt_device(params)
        res.update({
            "platform": "android",
            "name": "pdd",
            "collect_begin_time": int(self.get_p_proc_time()) + 100000 - random.randint(100, 1000),
            "collect_end_time": int(self.get_p_proc_time()) + 100000
        })
        return res

    def get_event_url_upload(self):
        secure = False
        url = 'https://th.pinduoduo.com/t.gif'
        import requests

        url = "https://th.pinduoduo.com/t.gif"

        payload = {
            "install_token": "8bdbe928-88a9-6244-b9d3-cbd8b06cdd8e",
            "_x_query": "荣昌卤鹅",
            "app_version": "7.8.0",
            "pdd_id": "DQLNG0vV",
            "refer_page_element": "goods",
            "refer_page_el_sn": "99369",
            "pid": "2312",
            "inner_page": "0",
            "platform": "Android",
            "network": "1",
            "network_operator": "",
            "page_sn": "10014",
            "page_id": "10014_1727400767000_0875376225",
            "_ck_p": "main",
            "_ck_id": "778adfeb27e143a3940b1d0405fea709",
            "event_type": "0",
            "page_name": "goods_detail",
            "_ck_seq": "5618",
            "model": "MI 6X",
            "uin": "R7WO5C3HCYIZUM6TVCUL2DOBIU_GEXDA",
            "brand": "xiaomi",
            "seq": "1727400735027",
            "page_el_sn": "570743",
            "goods_status": "1",
            "op": "impr",
            "log_id": "5b1ec4dacb0a48e5a1b8082b78ab30dc",
            "bubble_type": "0",
            "local_port": "47318",
            "refer_page_sn": "10015",
            "refer_page_id": "10015_1727400750773_1122894242",
            "goods_id": "132041607548",
            "bubble_style": "order",
            "refer_page_section": "goods_list",
            "local_ip": "192.168.17.183",
            "manufacture": "Xiaomi",
            "_ck_sequ": "3736",
            "internal_version": "1714965410516",
            "bubble_id": "2713271707084103781",
            "refer_rn": "7373b97f329a98e56d78608a6791680e",
            "user_id": "1796411056444",
            "refer_page_name": "search_result",
            "time": "1727401323037",
            "_sr": "100",
            "sctk": "vlOszfBzQvoDcSL50OYTByu1lTWaqPApBqXcq1OjO"
        }
        headers = {
            'User-Agent': 'android Mozilla/5.0 (Linux; Android 8.1.0; MI 6X Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36  phh_android_version/7.8.0 phh_android_build/bf793aa528affe1b01408904fabc55be5b816173_pdd_patch phh_android_channel/yyb pversion/5488',
            'Accept-Encoding': 'gzip',
            'tk-ext': '_ch=0',
            'etag': 'DQLNG0vV',
            'referer': 'Android',
            'p-proc': 'main',
            'p-mediainfo': 'player=2.0.4&rtc=1.0.0',
            'x-b3-ptracer': 'qctrue117e2a2d31084dcc9a294067d2',
            'multi-set': '0,0,',
            'content-encoding': 'gzip',
            'content-type': 'application/x-www-form-urlencoded; charset=utf-8',
            'vip': '192.168.16.154',
            'Cookie': 'api_uid=ZeIuI2bz3C1xJynBO9oGAg=='
        }

        response = requests.request("POST", url, headers=headers, data=payload)

        print(response.text)

        secure = True
        url = 'https://th.pinduoduo.com/te.gif'


if __name__ == '__main__':
    test_device_info = {
        'width': '1240',
        'height': '2662',
        'brand': 'OnePlus',
        'model': 'PHP310',
        'buildId': 'UKQ1.102324.001',
        'release': '14',
        'etag': 'pyfPqW5K',
        'oaid': 'd47a2896908745d0',
        'install_token': '4bdbe928-88a9-4244-b9d3-cbd8b06cdd8e',
        'uuid': '4f12e2c0-26b7-4609-aaf0-9bb561048bc8',
        'cookie': 'ZeIuI1bz3C1xJynBO9oGAg==',  # api_uid
        "p46": "1714965410516",  # internal_version
        "known_device": "1",
        "version": "205",
        "p30": "OT70o8/8z9udl/SpFWzaMXFCuM02xvOnnCQZkb0xcA4+zVwlpG2U1Pzh4IEcOnkk9FYCJnKxOXOCWMM3mLRFTANYHnbhzM9DDrpS9EK6g8/y/cKid88fB9cF+apJImVmL8YqFIdPksUdoRgfGNnmVr+WV4ljyLVIkH+BbLnyV2l4+G3/0mSR3ZchHJMcyZR2SquIkMxhaNqvzcOW4xj6Vaewly8BsUoyP4zDsuYIM5b3Or2SXUOfMpcLxgxdzvn22MPGbQb5kaKczphwlFMfq/uqRfHgv2EgZUIiWQZTYBkC9D127TyIpqKUlHElROcwJcmQdcdf81wKhycQoEeyGaacjQKRhYd2vkcUblW+/pgOpnZgRUpEEnDulsPfFe4zPPeR/AmndpJMo9sPzTog/bHCqhj41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0Q9S9nc6yCTGjw4NenqMdioG6JA9vWtkZyZGu0fEEYruds6tTczREp95Ioj53bue54OFKWXqtJKZrHWY/n/PSaHcyGDiegsVM9G7we6cuzvNTkMcTJbjiRt7sWoKfmjb4xmgbm77Sxg7k11ifVGZt+Wnzew5rSHdEGf0MS8GIeR9YUUMkIQepaX0SM2H0GPHpGasfMBvXCbez1z",
        "p72": "1",
        "input_mathod": "com.baidu.input_oppo",
        "secure_lock": "0",
        "ip_list": "fe80::dcd0:a3ff:fe84:af82%dummy0;fe80::14a2:6eff:fee9:26eb%ifb0;fe80::40ad:6aff:fec6:4b73%ifb2;fe80::17f8:c6ad:1230:a686%ccmni2;240e:473:840:12bc:17f8:c6ad:1230:a686;100.105.122.83;fe80::10a4:24ff:fef2:c457%ifb1;fe80::17f8:c6aa:b0a2:f030%ccmni0;240e:573:9b0:381c:17f8:c6aa:b0a2:f030;",
        "simState": "5",
        "totalcapacity": "238603436032",
        "availablecapacity": "178679091200",
        "totalmemory": "11963949056",
        "adb_enabled": "1",
        "mediaDrm": "0:1f419f9dc472347816b434968fe183b82b6af4e9f465734f9518b719c8150918|Google|16.1.1@006|Widevine CDM;",
        "availablememory": "5083127808",
        "imei_permission": "-1",
        "net_type": "MOBILE",
        "user_phonename": "一加 Ace 2v",
        "process_id": "4301",
        "input_device": "5|touchpanel|26d13db3fa0f6bd5d05831266fb01ea6c500b88c|4355;",
        "user_env2": "0wGrZhSFA8OVdJq+Su10b7QWYF9X0DZdeTvRjuhLkUmtag9/m0MeDBHpBh0yJIOx3YcLgEJ6Ka1HLblgbQ8poBBfPrSv9gFT9RBmYYTBq9Y7dtKvGHZTwrp3MGoFHV43ppevs4IA1Ia5pWinCveNk1p/NPNhvrFeCFSGsiJUulxVNC/BCNTcnKyqFH9XW1ng9Ung+p+Amh6Ys8zts1OR8X8oE8uFiVaYhhoUko3qlopB7jzBTvrDCGLDT5ef7rPKDYw7QHuri8bdaXFmwUj2o4nLa6aC+AfwHuLKtMWr5awv7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KXksHMHzsM8CKyBXyaPveNC2TEzhLOjMVqQIKmYGLmmwsJwjKVYs9gDIB6NruaoqAXrbVM8LGpqUICo9RM11NMhFpjuuXqyCYKfr6/KDRhZGHG1oIxh+3oDFhTyBHhvE9BiKwfl1swFEkg3vdN7GoEdNsNUgEb+WTwyQ6o3DTV73HnxWqsEFsJ5K9LkW7scGYqH0nmbDI5WOcPZoDuTbUFuSErGUehzsvw7C6vccTWXDcXZZSnpQE08FLibJ6MX2l3mC5lmJ7XSCz8uvarqG/l6cs6DFr2FR2SE3D/w3GTgaxi+/CGyVVrihxWmvjscLl8ySCPt9VCOt64JEyWoi1y92Jn2sfGqZJAEBV22bewg7XoOiD4R9eIPg1iFDq7OOo3mqauC3smdyuiDOOeD018JL9VUCqFuSXqV5+oEaU40IEFSb",
    }
    base_device_info = {
        'width': '1080',
        'height': '2030',
        'brand': 'xiaomi',
        'model': 'MI 6X',
        'buildId': 'OPM1.171019.011',
        'release': '14',
        'etag': 'aQLNG0vV',
        'oaid': 'd47a2866908745d0',
        'install_token': 'c08ed5e1-a003-4358-ac74-7efaa2a67fa8',
        'uuid': 'b6d1cb9e-aa5b-4fe7-95bf-36360681a984',
        'cookie': 'Cki4hmb1CF5LdwBcjzIhAg==',  # api_uid
        'p46': "1714965410516",
    }
    test_device_info = {
        "start_by_user": "true",
        "install_token": "8bdbe928-88a9-6244-b9d3-cbd8b06cdd8e",
        "app_type": "",
        "app_version": "7.8.0",
        "device_id": "",
        "tmp_id": "",
        "clipboard_md5": "",
        "commitid": "bf793aa528affe1b01408904fabc55be5b816173_pdd_patch",
        "uuid": "784bcee8-d581-4725-a2ba-88a926db7fa",
        "scene": "1",
        "meta_type": "all",
        "p46": "1714965410516",
        "imei_shown": "false",
        "instrumentation_chain": "android.app.Instrumentation",
        "known_device": "1",
        "oaid": "d47a2896908745d0",
        "version": "205",
        "wallpaper_md5": "",
        "instrumentation": "android.app.Instrumentation",
        "kernelVersion": "",
        "ringtone": "",
        "alarm": "",
        "notification": "",
        "p29": "",
        "p30": "OT70o8/8z9udl/SpFWzaMXFCuM02xvOnnCQZkb0xcA4+zVwlpG2U1Pzh4IEcOnkk9FYCJnKxOXOCWMM3mLRFTANYHnbhzM9DDrpS9EK6g8/y/cKid88fB9cF+apJImVmL8YqFIdPksUdoRgfGNnmVr+WV4ljyLVIkH+BbLnyV2l4+G3/0mSR3ZchHJMcyZR2SquIkMxhaNqvzcOW4xj6Vaewly8BsUoyP4zDsuYIM5b3Or2SXUOfMpcLxgxdzvn22MPGbQb5kaKczphwlFMfq/uqRfHgv2EgZUIiWQZTYBkC9D127TyIpqKUlHElROcwJcmQdcdf81wKhycQoEeyGaacjQKRhYd2vkcUblW+/pgOpnZgRUpEEnDulsPfFe4zPPeR/AmndpJMo9sPzTog/bHCqhj41WQ9za5jrkurIX8lNpDWIJXHcL+v8vQ40lo0UDryqZlUCsCVG2bT72IxttOgEjb3ba26VfJvSaKsCHQnCJz2Wm1l2O22fGhzziUkfBa18awsZ7gQfHr7NpZg797M8SfigS6dUWVRRgQCKLiaUPdZNiM4P5dGChvOURWvhdT8JLAJ8H5LyG4GUumjopbvlcrgeW79shd3CZC6lO1k0RKP39we2qmoG9kf6rAvW4C0KImgSspT6pja5OrKb/+kK5sMSjcbEKfdtYlJNTUxeNXxSxmAUqhCVcBscQXydvTA4lvFKDMF0AZx7kjAfHo2k9jPTfOYQfYRmKfLgaJqfmTkA/Fn4cUymm60z6VXNZyCzBhOk1C7npEA0sx26NfAcS9t0O1npYphbiBOKduRbKjyWoel66DxdPVTVHsCzzRS/7m58ucA1ULkzhZYgA0akc198oWNTAEgD+gApk5upI6cUNlqGo/50MAmQV0OeDCKI2LgGkWpQud7K4BcTgxtlCTefFN/NKjLyRxSgtTpj2dGQzzm7U/1CsvVPOCo4HTmYkFe1OeAFPrXBX/zkzbqOeWoc+N5K4qTYgVwK//VwuogszFdKpdWsk9l1BbZwjHl+oF94uTEodrG24McSe5R1BNbB1ZCHDKDAajNVmIv0QluQ5VQ+c7iTwEdc35nqEUmfHjQCXnJneRTmg4ebSagHExFMqp34M8Rs1VQG3YhuuD5FftK52ffWE+TmC9FvHb8YDS8lp5QUTZ9pkim81w4jFnHm4p88fJAOgi3LKVynnPyRmxcAZuNLfbmEyhTZhKXuF4+yb2x0HdQWT5O/TLkN331uaMLPJ7oQ6dqjs49z+JuNY2O2exCQaHCB7CuDAnh8hT99gK9tTsXrnnPnUtT8wTvCZOQgyozR5kJqVZ3YY2bsVz4ixnrw0PinFTJfxJs4eG+cDg/ZwIrEaI6tZcf1fQNIxWVGs7wsVIovZ7oz1rYUDxh8bZ4Cjlp8/gxHinESLJNlqoyCRi9EiYJNJFJLg0aMYx9HaAGqbM3P8wgcEZG81j7ov7Nkp7ts3g9fYR++hVjgllBsnoaSUY++uuaw0Q9S9nc6yCTGjw4NenqMdioG6JA9vWtkZyZGu0fEEYruds6tTczREp95Ioj53bue54OFKWXqtJKZrHWY/n/PSaHcyGDiegsVM9G7we6cuzvNTkMcTJbjiRt7sWoKfmjb4xmgbm77Sxg7k11ifVGZt+Wnzew5rSHdEGf0MS8GIeR9YUUMkIQepaX0SM2H0GPHpGasfMBvXCbez1z",
        "p72": "1",
        "input_mathod": "com.baidu.input_oppo",
        "secure_lock": "0",
        "ip_list": "fe80::dcd0:a3ff:fe84:af82%dummy0;fe80::14a2:6eff:fee9:26eb%ifb0;fe80::40ad:6aff:fec6:4b73%ifb2;fe80::17f8:c6ad:1230:a686%ccmni2;240e:473:840:12bc:17f8:c6ad:1230:a686;100.105.122.83;fe80::10a4:24ff:fef2:c457%ifb1;fe80::17f8:c6aa:b0a2:f030%ccmni0;240e:573:9b0:381c:17f8:c6aa:b0a2:f030;",
        "connected_wifi": "",
        "wifi": "",
        "development_enabled": "1",
        "simState": "5",
        "totalcapacity": "238603436032",
        "availablecapacity": "178679081200",
        "totalmemory": "11963949056",
        "psno": "",
        "adb_enabled": "1",
        "mediaDrm": "0:1f419f9dc472347816b434968fe183b82b6af4e9f465734f9518b719c8150918|Google|16.1.1@006|Widevine CDM;",
        "sn_1": "",
        "sn_2": "",
        "sn_3": "unknown",
        "brightness": "0",
        "availablememory": "5083127807",
        "imei_permission": "-1",
        "net_type": "MOBILE",
        "fk_result": "{\"vInfo\":{\"exits\":0,\"id\":\"\"},\"antInfo\":{\"exits\":0}}",
        "machine_arch": "ARM",
        "arp_info": "",
        "user_phonename": "一加 Ace 2V",
        "process_id": "4311",
        "cid_inner": "",
        "cid": "",
        "input_device": "5|touchpanel|26d13db3fa0f6bd5d05831266fb01ea6c500b88c|4355;",
        "wifi_config": "",
        "target_version": "30",
        "user_env2": "0wGrZhSFA8OVdJq+Su10b7QWYF9X0DZdeTvRjuhLkUmtag9/m0MeDBHpBh0yJIOx3YcLgEJ6Ka1HLblgbQ8poBBfPrSv9gFT9RBmYYTBq9Y7dtKvGHZTwrp3MGoFHV43ppevs4IA1Ia5pWinCveNk1p/NPNhvrFeCFSGsiJUulxVNC/BCNTcnKyqFH9XW1ng9Ung+p+Amh6Ys8zts1OR8X8oE8uFiVaYhhoUko3qlopB7jzBTvrDCGLDT5ef7rPKDYw7QHuri8bdaXFmwUj2o4nLa6aC+AfwHuLKtMWr5awv7lhZO5ARnIN/wfOXWAhoQYB0zhbXwtjhvDr5z8kEPBtBbj5JoeT2E+L7mJa4LjunBa4KedNe9yhOT72y8Hwowm6YaNGP/yEhc89kA4A9+XXVRan2cy68Rvx5ICVFJOC41ROuZ3TDIfEjhmSQhtCW0RR3ZtQgHWz+zLi5hxMDyAQ35ZpUKBKYwwTGIBC/6A2HpDNV10NpL8t2Fbw2nZKP8qaWqjwzoUVTKsRZ7CefkbcfC7ejp955Gw5L6onslysBZOg8QTA7F5boyR3cdNa3FSXkHBe4ScgzXPnG3i5IgXN+8ZTjs/+Diut8Aac/LMHfJjI5a5TflOGTyeDq7QWLijjTfJ1Ab090p+dsR1AN2cUUyOpy8ZClh1pwJRdqJBRMDtXWZgGewFzID7tZEAmwQEGtlT6gp9yaI3562CZwlP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b",
        "foreground": "true",
        "currentTime": "1727349492863"
    }
    test = PddAppRiskUtil({**test_device_info, **base_device_info})
    proxies = get_company_ip_crawler_by_api()
    print(test.get_etag(proxies=proxies))
